<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - 社交圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #165DFF;
            --secondary-color: #4080FF;
            --light-bg: #F5F7FA;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: var(--light-bg);
            color: #333;
            line-height: 1.6;
        }
        
        /* 顶部导航 */
        .top-nav {
            background-color: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
        }
        
        .search-container {
            position: relative;
            max-width: 400px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            border-radius: 20px;
            border: 1px solid #eee;
            background-color: var(--light-bg);
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }
        
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        
        .action-icon {
            color: #666;
            font-size: 1.25rem;
            position: relative;
            transition: color 0.2s ease;
        }
        
        .action-icon:hover {
            color: var(--primary-color);
        }
        
        .notification-dot {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 10px;
            height: 10px;
            background-color: #FF4D4F;
            border-radius: 50%;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.2s ease;
        }
        
        .user-avatar:hover {
            border-color: var(--primary-color);
        }
        
        /* 主内容区 */
        .main-container {
            padding: 2rem 0;
        }
        
        /* 个人资料头部 */
        .profile-header {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .cover-photo {
            height: 200px;
            background-color: #E8F3FF;
            position: relative;
        }
        
        .cover-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .change-cover {
            position: absolute;
            right: 1.5rem;
            bottom: 1.5rem;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .change-cover:hover {
            background-color: rgba(0, 0, 0, 0.7);
        }
        
        .profile-info {
            padding: 0 2rem 2rem;
            margin-top: -60px;
        }
        
        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .profile-main {
            margin-left: 140px;
        }
        
        .profile-name {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }
        
        .profile-title {
            color: #666;
            margin-bottom: 1rem;
        }
        
        .profile-actions {
            display: flex;
            gap: 1rem;
        }
        
        /* 功能导航 */
        .function-nav {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .nav-tabs {
            border-bottom: 1px solid #eee;
            margin-bottom: 1rem;
        }
        
        .nav-tab {
            padding: 0.75rem 1.5rem;
            color: #666;
            text-decoration: none;
            font-weight: 500;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
        }
        
        .nav-tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }
        
        .nav-tab:hover:not(.active) {
            color: var(--primary-color);
            border-bottom-color: rgba(22, 93, 255, 0.2);
        }
        
        /* 统计卡片 */
        .stats-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .stat-card {
            flex: 1;
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--hover-shadow);
        }
        
        .stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
        }
        
        .stat-label {
            color: #666;
            font-size: 0.9rem;
        }
        
        /* 内容区域 */
        .content-grid {
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 2rem;
        }
        
        /* 左侧主内容 */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .content-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .card-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #333;
            margin: 0;
        }
        
        .card-action {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .card-action:hover {
            text-decoration: underline;
        }
        
        /* 动态发布框 */
        .post-box {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .post-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .post-input {
            flex: 1;
            border: 1px solid #eee;
            border-radius: 24px;
            padding: 0.75rem 1.25rem;
            resize: none;
            transition: all 0.2s ease;
        }
        
        .post-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
        }
        
        .post-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .post-options {
            display: flex;
            gap: 1.5rem;
        }
        
        .post-option {
            color: #666;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .post-option:hover {
            color: var(--primary-color);
        }
        
        .post-button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 0.5rem 1.5rem;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .post-button:hover {
            background-color: #0E42D2;
        }
        
        /* 最近动态 */
        .activity-item {
            display: flex;
            gap: 1rem;
            padding: 1rem 0;
            border-bottom: 1px solid #eee;
        }
        
        .activity-item:last-child {
            border-bottom: none;
        }
        
        .activity-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .activity-content {
            flex: 1;
        }
        
        .activity-header {
            margin-bottom: 0.5rem;
        }
        
        .activity-name {
            font-weight: 600;
            margin-right: 0.5rem;
        }
        
        .activity-time {
            color: #999;
            font-size: 0.85rem;
        }
        
        .activity-text {
            margin-bottom: 0.75rem;
        }
        
        .activity-images {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }
        
        .activity-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
        }
        
        .activity-actions {
            display: flex;
            gap: 1.5rem;
        }
        
        .activity-action {
            color: #666;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .activity-action:hover {
            color: var(--primary-color);
        }
        
        /* 右侧边栏 */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .sidebar-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
        }
        
        /* 个人资料摘要 */
        .profile-summary {
            text-align: center;
        }
        
        .summary-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 1rem;
        }
        
        .summary-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .summary-title {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .summary-bio {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }
        
        .summary-stats {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .summary-stat {
            text-align: center;
        }
        
        .summary-stat-value {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .summary-stat-label {
            font-size: 0.85rem;
            color: #666;
        }
        
        .edit-profile {
            width: 100%;
            background-color: white;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
            border-radius: 4px;
            padding: 0.5rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .edit-profile:hover {
            background-color: rgba(22, 93, 255, 0.05);
        }
        
        /* 即将到来的生日 */
        .birthday-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid #eee;
        }
        
        .birthday-item:last-child {
            border-bottom: none;
        }
        
        .birthday-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .birthday-info {
            flex: 1;
        }
        
        .birthday-name {
            font-weight: 500;
            margin-bottom: 0.1rem;
        }
        
        .birthday-date {
            font-size: 0.85rem;
            color: #666;
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .content-grid {
                grid-template-columns: 2fr 1fr;
            }
        }
        
        @media (max-width: 992px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                order: -1;
            }
            
            .stats-container {
                flex-wrap: wrap;
            }
            
            .stat-card {
                flex: 1 1 200px;
            }
        }
        
        @media (max-width: 768px) {
            .search-container {
                display: none;
            }
            
            .profile-info {
                padding: 0 1rem 1.5rem;
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            
            .profile-main {
                margin-left: 0;
                text-align: center;
                margin-top: 1rem;
            }
            
            .profile-actions {
                justify-content: center;
            }
            
            .nav-tab {
                padding: 0.75rem 1rem;
                font-size: 0.9rem;
            }
        }
        
        @media (max-width: 576px) {
            .nav-actions {
                gap: 1rem;
            }
            
            .action-icon {
                font-size: 1.1rem;
            }
            
            .cover-photo {
                height: 150px;
            }
            
            .profile-avatar {
                width: 100px;
                height: 100px;
            }
            
            .nav-tabs {
                overflow-x: auto;
                white-space: nowrap;
                padding-bottom: 0.5rem;
            }
            
            .post-options {
                gap: 1rem;
            }
            
            .post-option span {
                display: none;
            }
            
            .activity-images {
                flex-wrap: wrap;
            }
            
            .activity-image {
                width: 48%;
                height: auto;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <nav class="top-nav">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <!-- 网站标志 -->
                <a href="#" class="logo">社交圈</a>
                
                <!-- 搜索框 -->
                <div class="search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索朋友、动态或内容...">
                </div>
                
                <!-- 导航操作 -->
                <div class="nav-actions">
                    <a href="#" class="action-icon">
                        <i class="fas fa-home"></i>
                    </a>
                    <a href="#" class="action-icon">
                        <i class="fas fa-bell"></i>
                        <span class="notification-dot"></span>
                    </a>
                    <a href="#" class="action-icon">
                        <i class="fas fa-envelope"></i>
                        <span class="notification-dot"></span>
                    </a>
                    <a href="#" class="action-icon">
                        <i class="fas fa-compass"></i>
                    </a>
                    <img src="https://picsum.photos/id/64/100/100" alt="用户头像" class="user-avatar">
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-container">
        <div class="container">
            <!-- 个人资料头部 -->
            <div class="profile-header">
                <div class="cover-photo">
                    <img src="https://picsum.photos/id/1015/1600/400" alt="封面照片" class="cover-img">
                    <button class="change-cover">
                        <i class="fas fa-camera"></i> 更换封面
                    </button>
                </div>
                
                <div class="profile-info">
                    <img src="https://picsum.photos/id/64/200/200" alt="个人头像" class="profile-avatar">
                    
                    <div class="profile-main">
                        <h1 class="profile-name">李明</h1>
                        <div class="profile-title">产品设计师 @ 科技创新公司</div>
                        
                        <div class="profile-actions">
                            <button class="btn btn-primary">
                                <i class="fas fa-user-edit me-1"></i> 编辑资料
                            </button>
                            <button class="btn btn-outline-secondary">
                                <i class="fas fa-cog me-1"></i> 账号设置
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 功能导航 -->
            <div class="function-nav">
                <div class="nav-tabs">
                    <a href="#" class="nav-tab active">
                        <i class="fas fa-home me-1"></i> 首页
                    </a>
                    <a href="#" class="nav-tab">
                        <i class="fas fa-user me-1"></i> 个人资料
                    </a>
                    <a href="#" class="nav-tab">
                        <i class="fas fa-images me-1"></i> 相册
                    </a>
                    <a href="#" class="nav-tab">
                        <i class="fas fa-comment-alt me-1"></i> 动态
                    </a>
                    <a href="#" class="nav-tab">
                        <i class="fas fa-users me-1"></i> 好友
                    </a>
                    <a href="#" class="nav-tab">
                        <i class="fas fa-bookmark me-1"></i> 收藏
                    </a>
                </div>
            </div>
            
            <!-- 统计卡片 -->
            <div class="stats-container">
                <div class="stat-card">
                    <div class="stat-value">356</div>
                    <div class="stat-label">好友</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">248</div>
                    <div class="stat-label">动态</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">1.2k</div>
                    <div class="stat-label">粉丝</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">4.8k</div>
                    <div class="stat-label">获赞</div>
                </div>
                <div class="stat-card">
                    <div class="stat-value">156</div>
                    <div class="stat-label">收藏</div>
                </div>
            </div>
            
            <!-- 内容网格 -->
            <div class="content-grid">
                <!-- 左侧主内容 -->
                <div class="main-content">
                    <!-- 发布动态 -->
                    <div class="content-card">
                        <div class="post-box">
                            <img src="https://picsum.photos/id/64/100/100" alt="你的头像" class="post-avatar">
                            <textarea class="post-input" rows="3" placeholder="分享你的想法..."></textarea>
                        </div>
                        
                        <div class="post-actions">
                            <div class="post-options">
                                <button class="post-option">
                                    <i class="fas fa-image"></i>
                                    <span>图片</span>
                                </button>
                                <button class="post-option">
                                    <i class="fas fa-video"></i>
                                    <span>视频</span>
                                </button>
                                <button class="post-option">
                                    <i class="fas fa-smile"></i>
                                    <span>表情</span>
                                </button>
                                <button class="post-option">
                                    <i class="fas fa-map-marker-alt"></i>
                                    <span>位置</span>
                                </button>
                            </div>
                            
                            <button class="post-button">发布</button>
                        </div>
                    </div>
                    
                    <!-- 最近动态 -->
                    <div class="content-card">
                        <div class="card-header">
                            <h2 class="card-title">我的动态</h2>
                            <a href="#" class="card-action">
                                查看全部 <i class="fas fa-chevron-right fa-sm"></i>
                            </a>
                        </div>
                        
                        <div class="activity-list">
                            <div class="activity-item">
                                <img src="https://picsum.photos/id/64/100/100" alt="你的头像" class="activity-avatar">
                                <div class="activity-content">
                                    <div class="activity-header">
                                        <span class="activity-name">李明</span>
                                        <span class="activity-time">今天 10:23</span>
                                    </div>
                                    <p class="activity-text">周末去了郊外的创意园区，发现了很多有趣的设计和艺术装置。</p>
                                    <div class="activity-images">
                                        <img src="https://picsum.photos/id/1048/200/200" alt="动态图片" class="activity-image">
                                        <img src="https://picsum.photos/id/1025/200/200" alt="动态图片" class="activity-image">
                                    </div>
                                    <div class="activity-actions">
                                        <button class="activity-action">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>128</span>
                                        </button>
                                        <button class="activity-action">
                                            <i class="far fa-comment"></i>
                                            <span>32</span>
                                        </button>
                                        <button class="activity-action">
                                            <i class="far fa-share-square"></i>
                                            <span>分享</span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="activity-item">
                                <img src="https://picsum.photos/id/64/100/100" alt="你的头像" class="activity-avatar">
                                <div class="activity-content">
                                    <div class="activity-header">
                                        <span class="activity-name">李明</span>
                                        <span class="activity-time">昨天 16:45</span>
                                    </div>
                                    <p class="activity-text">上传了5张新照片到相册《设计作品集》</p>
                                    <div class="activity-images">
                                        <img src="https://picsum.photos/id/180/200/200" alt="相册图片" class="activity-image">
                                        <img src="https://picsum.photos/id/181/200/200" alt="相册图片" class="activity-image">
                                        <img src="https://picsum.photos/id/182/200/200" alt="相册图片" class="activity-image">
                                    </div>
                                    <div class="activity-actions">
                                        <button class="activity-action">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>86</span>
                                        </button>
                                        <button class="activity-action">
                                            <i class="far fa-comment"></i>
                                            <span>15</span>
                                        </button>
                                        <button class="activity-action">
                                            <i class="far fa-share-square"></i>
                                            <span>分享</span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="activity-item">
                                <img src="https://picsum.photos/id/64/100/100" alt="你的头像" class="activity-avatar">
                                <div class="activity-content">
                                    <div class="activity-header">
                                        <span class="activity-name">李明</span>
                                        <span class="activity-time">3天前</span>
                                    </div>
                                    <p class="activity-text">今天参加了行业设计峰会，学到了很多新的设计理念和方法，收获满满！#设计 #行业动态</p>
                                    <div class="activity-actions">
                                        <button class="activity-action">
                                            <i class="far fa-thumbs-up"></i>
                                            <span>215</span>
                                        </button>
                                        <button class="activity-action">
                                            <i class="far fa-comment"></i>
                                            <span>47</span>
                                        </button>
                                        <button class="activity-action">
                                            <i class="far fa-share-square"></i>
                                            <span>分享</span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 最近相册 -->
                    <div class="content-card">
                        <div class="card-header">
                            <h2 class="card-title">我的相册</h2>
                            <a href="#" class="card-action">
                                查看全部 <i class="fas fa-chevron-right fa-sm"></i>
                            </a>
                        </div>
                        
                        <div class="row g-3">
                            <div class="col-3">
                                <img src="https://picsum.photos/id/1039/300/300" alt="相册封面" class="w-100 h-24 object-cover rounded">
                            </div>
                            <div class="col-3">
                                <img src="https://picsum.photos/id/1035/300/300" alt="相册封面" class="w-100 h-24 object-cover rounded">
                            </div>
                            <div class="col-3">
                                <img src="https://picsum.photos/id/1036/300/300" alt="相册封面" class="w-100 h-24 object-cover rounded">
                            </div>
                            <div class="col-3">
                                <img src="https://picsum.photos/id/1038/300/300" alt="相册封面" class="w-100 h-24 object-cover rounded">
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 右侧边栏 -->
                <div class="sidebar">
                    <!-- 个人资料摘要 -->
                    <div class="sidebar-card profile-summary">
                        <img src="https://picsum.photos/id/64/200/200" alt="个人头像" class="summary-avatar">
                        <h3 class="summary-name">李明</h3>
                        <div class="summary-title">产品设计师 @ 科技创新公司</div>
                        
                        <p class="summary-bio">
                            热爱设计与创意，专注于用户体验与交互设计。喜欢摄影、旅行和分享生活中的美好瞬间。
                        </p>
                        
                        <div class="summary-stats">
                            <div class="summary-stat">
                                <div class="summary-stat-value">356</div>
                                <div class="summary-stat-label">好友</div>
                            </div>
                            <div class="summary-stat">
                                <div class="summary-stat-value">1.2k</div>
                                <div class="summary-stat-label">粉丝</div>
                            </div>
                            <div class="summary-stat">
                                <div class="summary-stat-value">4.8k</div>
                                <div class="summary-stat-label">获赞</div>
                            </div>
                        </div>
                        
                        <button class="edit-profile">
                            <i class="fas fa-user-edit me-1"></i> 编辑资料
                        </button>
                    </div>
                    
                    <!-- 通知 -->
                    <div class="sidebar-card">
                        <div class="card-header">
                            <h3 class="card-title">最新通知</h3>
                            <a href="#" class="card-action">全部</a>
                        </div>
                        
                        <div class="activity-list">
                            <div class="activity-item">
                                <img src="https://picsum.photos/id/65/100/100" alt="用户头像" class="activity-avatar">
                                <div class="activity-content">
                                    <div class="activity-header">
                                        <span class="activity-name">王小红</span>
                                        <span class="activity-time">10分钟前</span>
                                    </div>
                                    <p class="activity-text">赞了你的动态</p>
                                </div>
                            </div>
                            
                            <div class="activity-item">
                                <img src="https://picsum.photos/id/66/100/100" alt="用户头像" class="activity-avatar">
                                <div class="activity-content">
                                    <div class="activity-header">
                                        <span class="activity-name">张伟</span>
                                        <span class="activity-time">1小时前</span>
                                    </div>
                                    <p class="activity-text">评论了你的照片："这张拍得真棒！"</p>
                                </div>
                            </div>
                            
                            <div class="activity-item">
                                <img src="https://picsum.photos/id/67/100/100" alt="用户头像" class="activity-avatar">
                                <div class="activity-content">
                                    <div class="activity-header">
                                        <span class="activity-name">刘芳</span>
                                        <span class="activity-time">3小时前</span>
                                    </div>
                                    <p class="activity-text">请求添加你为好友</p>
                                    <div class="d-flex gap-2 mt-1">
                                        <button class="btn btn-sm btn-primary">同意</button>
                                        <button class="btn btn-sm btn-outline-secondary">忽略</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 即将到来的生日 -->
                    <div class="sidebar-card">
                        <div class="card-header">
                            <h3 class="card-title">好友生日</h3>
                            <a href="#" class="card-action">全部</a>
                        </div>
                        
                        <div class="birthday-list">
                            <div class="birthday-item">
                                <img src="https://picsum.photos/id/91/100/100" alt="好友头像" class="birthday-avatar">
                                <div class="birthday-info">
                                    <div class="birthday-name">赵小明</div>
                                    <div class="birthday-date">3天后 (5月18日)</div>
                                </div>
                                <button class="btn btn-sm btn-outline-primary">祝福</button>
                            </div>
                            
                            <div class="birthday-item">
                                <img src="https://picsum.photos/id/92/100/100" alt="好友头像" class="birthday-avatar">
                                <div class="birthday-info">
                                    <div class="birthday-name">陈静</div>
                                    <div class="birthday-date">1周后 (5月22日)</div>
                                </div>
                                <button class="btn btn-sm btn-outline-primary">祝福</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 导航标签切换
            const navTabs = document.querySelectorAll('.nav-tab');
            navTabs.forEach(tab => {
                tab.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    // 移除所有激活状态
                    navTabs.forEach(t => t.classList.remove('active'));
                    
                    // 添加当前激活状态
                    this.classList.add('active');
                });
            });
            
            // 动态点赞功能
            const likeButtons = document.querySelectorAll('.activity-action');
            likeButtons.forEach(button => {
                if (button.querySelector('.far.fa-thumbs-up')) {
                    button.addEventListener('click', function() {
                        const icon = this.querySelector('i');
                        const countSpan = this.querySelector('span');
                        let count = parseInt(countSpan.textContent);
                        
                        if (icon.classList.contains('far')) {
                            icon.classList.remove('far');
                            icon.classList.add('fas', 'text-primary');
                            countSpan.textContent = count + 1;
                        } else {
                            icon.classList.remove('fas', 'text-primary');
                            icon.classList.add('far');
                            countSpan.textContent = count - 1;
                        }
                    });
                }
            });
            
            // 好友请求处理
            const friendRequestButtons = document.querySelectorAll('.birthday-item .btn, .activity-item .btn');
            friendRequestButtons.forEach(button => {
                if (button.textContent.trim() === '同意') {
                    button.addEventListener('click', function() {
                        const parentItem = this.closest('.activity-item');
                        if (parentItem) {
                            const name = parentItem.querySelector('.activity-name').textContent;
                            parentItem.innerHTML = `
                                <div class="activity-content">
                                    <p class="activity-text">你已同意 <strong>${name}</strong> 的好友请求，现在你们是好友了</p>
                                    <button class="btn btn-sm btn-primary mt-1">发送消息</button>
                                </div>
                            `;
                        }
                    });
                } else if (button.textContent.trim() === '忽略') {
                    button.addEventListener('click', function() {
                        const parentItem = this.closest('.activity-item');
                        if (parentItem) {
                            parentItem.remove();
                        }
                    });
                }
            });
        });
    </script>
</body>
</html>

